package com.metroinfo.infrastructure.keys;

public class BusInfoDataKey implements Comparable<Integer> {

	Integer busID;
	
	public BusInfoDataKey (Integer busID)
	{
		this.busID = busID;
	}
	@Override
	public int compareTo(Integer arg0) {
		
		return busID.compareTo(arg0);
	}
	
	@Override
	public int hashCode()
	{
		return busID.hashCode();
	}
	
	@Override
	public boolean equals(Object o)
	{
		if(o==this) return true;
		if((o==null)||!(o instanceof BusInfoDataKey)) return false;
		BusInfoDataKey tmp = BusInfoDataKey.class.cast(o);
		return busID.equals(tmp.busID);
	}
}
